<!DOCTYPE html>
<html lang="zh-Hans">
<head>

    <!--[if lt IE 9]>
        <style>body {display: none; background: none !important} </style>
        <meta http-equiv="Refresh" Content="0; url=//outdatedbrowser.com/" />
    <![endif]-->

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<meta name="author" content="HFWeddy" />



<meta name="description" content="在学习使用MongoDB中遇到一些问题，本文记录使用发现的问题和解决方案，使用环境为Win10 X64。">
<meta name="keywords" content="MongoDB,数据科学,网络爬虫">
<meta property="og:type" content="article">
<meta property="og:title" content="MongoDB使用记录">
<meta property="og:url" content="https://gitee.com/hfweddy/2017/10/18/MongoDB使用记录/index.html">
<meta property="og:site_name" content="HEWeddy&#39;s Blog">
<meta property="og:description" content="在学习使用MongoDB中遇到一些问题，本文记录使用发现的问题和解决方案，使用环境为Win10 X64。">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2017-10-25T14:47:51.279Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="MongoDB使用记录">
<meta name="twitter:description" content="在学习使用MongoDB中遇到一些问题，本文记录使用发现的问题和解决方案，使用环境为Win10 X64。">

<link rel="apple-touch-icon" href= "/apple-touch-icon.png">


    <link rel="alternate" href="/atom.xml" title="HEWeddy&#39;s Blog" type="application/atom+xml">



    <link rel="shortcut icon" href="/favicon.ico">



    <link href="//cdn.bootcss.com/animate.css/3.5.1/animate.min.css" rel="stylesheet">



    <link href="//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet">



    <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
    <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-minimal.css" rel="stylesheet">


<link rel="stylesheet" href="/css/style.css">



<link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">


<title>MongoDB使用记录 | HEWeddy&#39;s Blog</title>

<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>

<script>
    var yiliaConfig = {
        fancybox: true,
        animate: true,
        isHome: false,
        isPost: true,
        isArchive: false,
        isTag: false,
        isCategory: false,
        fancybox_js: "//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.js",
        scrollreveal: "//cdn.bootcss.com/scrollReveal.js/3.1.4/scrollreveal.min.js",
        search: true
    }
</script>


    <script> yiliaConfig.jquery_ui = [false]; </script>



    <script> yiliaConfig.rootUrl = "\/";</script>






</head>
<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
    <header id="header" class="inner">
        <a href="/" class="profilepic">
            <img src="/img/avatar.png" class="animated zoomIn">
        </a>
        <hgroup>
          <h1 class="header-author"><a href="/">HFWeddy</a></h1>
        </hgroup>

        
        <p class="header-subtitle">有条不紊的奋斗前行，舒展从容的恬静人生。</p>
        

        
            <form id="search-form">
            <input type="text" id="local-search-input" name="q" placeholder="search..." class="search form-control" autocomplete="off" autocorrect="off" searchonload="false" />
            <i class="fa fa-times" onclick="resetSearch()"></i>
            </form>
            <div id="local-search-result"></div>
            <p class='no-result'>No results found <i class='fa fa-spinner fa-pulse'></i></p>
        


        
            <div id="switch-btn" class="switch-btn">
                <div class="icon">
                    <div class="icon-ctn">
                        <div class="icon-wrap icon-house" data-idx="0">
                            <div class="birdhouse"></div>
                            <div class="birdhouse_holes"></div>
                        </div>
                        <div class="icon-wrap icon-ribbon hide" data-idx="1">
                            <div class="ribbon"></div>
                        </div>
                        
                        <div class="icon-wrap icon-link hide" data-idx="2">
                            <div class="loopback_l"></div>
                            <div class="loopback_r"></div>
                        </div>
                        
                        
                        <div class="icon-wrap icon-me hide" data-idx="3">
                            <div class="user"></div>
                            <div class="shoulder"></div>
                        </div>
                        
                    </div>
                    
                </div>
                <div class="tips-box hide">
                    <div class="tips-arrow"></div>
                    <ul class="tips-inner">
                        <li>菜单</li>
                        <li>标签</li>
                        
                        <li>友情链接</li>
                        
                        
                        <li>关于我</li>
                        
                    </ul>
                </div>
            </div>
        

        <div id="switch-area" class="switch-area">
            <div class="switch-wrap">
                <section class="switch-part switch-part1">
                    <nav class="header-menu">
                        <ul>
                        
                            <li><a href="/">主页</a></li>
                        
                            <li><a href="/archives/">所有文章</a></li>
                        
                            <li><a href="/tags/">标签云</a></li>
                        
                            <li><a href="/about/">关于我</a></li>
                        
                        </ul>
                    </nav>
                    <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" href="mailto:&#119;&#101;&#110;&#100;&#97;&#95;&#122;&#104;&#101;&#110;&#103;&#64;&#113;&#113;&#46;&#99;&#111;&#109;" title="Email"></a>
                            
                                <a class="fa RSS" href="/atom.xml" title="RSS"></a>
                            
                                <a class="fa 豆瓣" href="https://www.douban.com/people/66631445/" title="豆瓣"></a>
                            
                        </ul>
                    </nav>
                </section>
                
                
                <section class="switch-part switch-part2">
                    <div class="widget tagcloud" id="js-tagcloud">
                        <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/MongoDB/">MongoDB</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gitee/">gitee</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/github/">github</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/博客/">博客</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/数据科学/">数据科学</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/网络爬虫/">网络爬虫</a></li></ul>
                    </div>
                </section>
                
                
                
                <section class="switch-part switch-part3">
                    <div id="js-friends">
                    
                      <a class="main-nav-link switch-friends-link" href="https://hexo.io">Hexo</a>
                    
                      <a class="main-nav-link switch-friends-link" href="https://github.com/weddyzheng">GitHub</a>
                    
                      <a class="main-nav-link switch-friends-link" href="https://gitee.com/hfweddy">GitEE</a>
                    
                    </div>
                </section>
                

                
                
                <section class="switch-part switch-part4">
                
                    <div id="js-aboutme">专注于数据科学</div>
                </section>
                
            </div>
        </div>
    </header>                
</div>
    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
      <div class="overlay">
          <div class="slider-trigger"></div>
          <h1 class="header-author js-mobile-header hide"><a href="/" title="回到主页">HFWeddy</a></h1>
      </div>
    <div class="intrude-less">
        <header id="header" class="inner">
            <a href="/" class="profilepic">
                <img src="/img/avatar.png" class="animated zoomIn">
            </a>
            <hgroup>
              <h1 class="header-author"><a href="/" title="回到主页">HFWeddy</a></h1>
            </hgroup>
            
            <p class="header-subtitle">有条不紊的奋斗前行，舒展从容的恬静人生。</p>
            
            <nav class="header-menu">
                <ul>
                
                    <li><a href="/">主页</a></li>
                
                    <li><a href="/archives/">所有文章</a></li>
                
                    <li><a href="/tags/">标签云</a></li>
                
                    <li><a href="/about/">关于我</a></li>
                
                <div class="clearfix"></div>
                </ul>
            </nav>
            <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" target="_blank" href="mailto:&#119;&#101;&#110;&#100;&#97;&#95;&#122;&#104;&#101;&#110;&#103;&#64;&#113;&#113;&#46;&#99;&#111;&#109;" title="Email"></a>
                            
                                <a class="fa RSS" target="_blank" href="/atom.xml" title="RSS"></a>
                            
                                <a class="fa 豆瓣" target="_blank" href="https://www.douban.com/people/66631445/" title="豆瓣"></a>
                            
                        </ul>
            </nav>
        </header>                
    </div>
    <link class="menu-list" tags="标签" friends="友情链接" about="关于我"/>
</nav>
      <div class="body-wrap"><article id="post-MongoDB使用记录" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/2017/10/18/MongoDB使用记录/" class="article-date">
      <time datetime="2017-10-18T00:44:00.000Z" itemprop="datePublished">2017-10-18</time>
</a>


    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      MongoDB使用记录
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
    <div class="article-category tagcloud">
    <a class="article-category-link" href="/categories/数据科学/">数据科学</a>
    </div>


        
    <div class="article-tag tagcloud">
        <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/MongoDB/">MongoDB</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/数据科学/">数据科学</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/网络爬虫/">网络爬虫</a></li></ul>
    </div>

        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
          
        <p><excerpt in="" index="" |="" 首页摘要=""><br>在学习使用MongoDB中遇到一些问题，本文记录使用发现的问题和解决方案，使用环境为Win10 X64。<br><a id="more"></a></excerpt></p>
<the rest="" of="" contents="" |="" 余下全文="">

<h2 id="注册MongoDB服务"><a href="#注册MongoDB服务" class="headerlink" title="注册MongoDB服务"></a>注册MongoDB服务</h2><ul>
<li>首先，以管理员身份打开命令提示符，切换到MongoDB的bin目录。      </li>
</ul>
<p>接着，执行下面这一条语句：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">mongod.exe --logpath E:\DevSoft\mongodb\Data\log\mongodb.log --logappend --dbpath E:\DevSoft\mongodb\Data\db --directoryperdb --install --serviceName &quot;MongoDB&quot;</div></pre></td></tr></table></figure>
<ul>
<li>参数说明:</li>
<li>–logpath arg #指定MongoDB日志文件</li>
<li>–logappend   #使用追加的方式写日志</li>
<li>–dbpath arg  #指定数据库路径</li>
<li>–directoryperdb    #设置每个数据库将被保存在一个单独的目录</li>
<li>–serviceName #Windows服务的名称</li>
</ul>
<p> 最后，开启和关闭服务的语句。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">net start MongoDB</div><div class="line">net stop MongoDB</div></pre></td></tr></table></figure>
<p>注意一点：这些语句也要以<strong>管理员的身份</strong>运行，否则会报”发生系统错误5，拒绝访问”的提示。</p>
<h2 id="python使用MongoDB"><a href="#python使用MongoDB" class="headerlink" title="python使用MongoDB"></a>python使用MongoDB</h2><ul>
<li>安装第三方插件库pymongo，<a href="https://pypi.python.org/pypi/pymongo/" target="_blank" rel="external">官方文档</a>。</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ python -m pip install pymongo</div></pre></td></tr></table></figure>
<ul>
<li>最基本的用法<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div></pre></td><td class="code"><pre><div class="line">&gt;&gt;&gt; import pymongo</div><div class="line">&gt;&gt;&gt; client = pymongo.MongoClient(&quot;localhost&quot;, 27017)</div><div class="line">&gt;&gt;&gt; db = client.test</div><div class="line">&gt;&gt;&gt; db.name</div><div class="line">u&apos;test&apos;</div><div class="line">&gt;&gt;&gt; db.my_collection</div><div class="line">Collection(Database(MongoClient(&apos;localhost&apos;, 27017), u&apos;test&apos;), u&apos;my_collection&apos;)</div><div class="line">&gt;&gt;&gt; db.my_collection.insert_one(&#123;&quot;x&quot;: 10&#125;).inserted_id</div><div class="line">ObjectId(&apos;4aba15ebe23f6b53b0000000&apos;)</div><div class="line">&gt;&gt;&gt; db.my_collection.insert_one(&#123;&quot;x&quot;: 8&#125;).inserted_id</div><div class="line">ObjectId(&apos;4aba160ee23f6b543e000000&apos;)</div><div class="line">&gt;&gt;&gt; db.my_collection.insert_one(&#123;&quot;x&quot;: 11&#125;).inserted_id</div><div class="line">ObjectId(&apos;4aba160ee23f6b543e000002&apos;)</div><div class="line">&gt;&gt;&gt; db.my_collection.find_one()</div><div class="line">&#123;u&apos;x&apos;: 10, u&apos;_id&apos;: ObjectId(&apos;4aba15ebe23f6b53b0000000&apos;)&#125;</div><div class="line">&gt;&gt;&gt; for item in db.my_collection.find():</div><div class="line">...     print(item[&quot;x&quot;])</div><div class="line">...</div><div class="line">10</div><div class="line">8</div><div class="line">11</div><div class="line">&gt;&gt;&gt; db.my_collection.create_index(&quot;x&quot;)</div><div class="line">u&apos;x_1&apos;</div><div class="line">&gt;&gt;&gt; for item in db.my_collection.find().sort(&quot;x&quot;, pymongo.ASCENDING):</div><div class="line">...     print(item[&quot;x&quot;])</div><div class="line">...</div><div class="line">8</div><div class="line">10</div><div class="line">11</div><div class="line">&gt;&gt;&gt; [item[&quot;x&quot;] for item in db.my_collection.find().limit(2).skip(1)]</div><div class="line">[8, 11]</div></pre></td></tr></table></figure>
</li>
</ul>
<h2 id="使用MongoDB的几个注意事项"><a href="#使用MongoDB的几个注意事项" class="headerlink" title="使用MongoDB的几个注意事项"></a>使用MongoDB的几个注意事项</h2><ol>
<li>MongoDB使用内存映射文件，所以32位版本只能存储2GB左右的数据。    </li>
<li>MongoDB默认情况下是区分大小写的</li>
<li>MongoDB默认情况下是没有认证功能的，使用防火墙对MongoDB进行保护。</li>
<li>MongoDB的错误提示并不明确，使用getLastError或者使用安全写入。              </li>
</ol>
<h2 id="数据的导入"><a href="#数据的导入" class="headerlink" title="数据的导入"></a>数据的导入</h2><ul>
<li>MongoDB导入数据使用命令mongoimport, 使用说明可看<a href="https://docs.mongodb.com/manual/reference/program/mongoimport/" target="_blank" rel="external">官网帮助文件</a>。      </li>
<li>mongoimport可以导入CSV、TSV以及扩展JSON格式的文件（一般是mongoexport导出的文件），主要用法： </li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">mongoimport --db users --collection contacts --file contacts.json</div></pre></td></tr></table></figure>
</the>
      
    </div>
    
  </div>
  
    
    <div class="copyright">
        <p><span>本文标题:</span><a href="/2017/10/18/MongoDB使用记录/">MongoDB使用记录</a></p>
        <p><span>文章作者:</span><a href="/" title="回到主页">HFWeddy</a></p>
        <p><span>发布时间:</span>2017-10-18, 08:44:00</p>
        <p><span>最后更新:</span>2017-10-25, 22:47:51</p>
        <p>
            <span>原始链接:</span><a class="post-url" href="/2017/10/18/MongoDB使用记录/" title="MongoDB使用记录">https://gitee.com/hfweddy/2017/10/18/MongoDB使用记录/</a>
            <span class="copy-path" data-clipboard-text="原文: https://gitee.com/hfweddy/2017/10/18/MongoDB使用记录/　　作者: HFWeddy" title="点击复制文章链接"><i class="fa fa-clipboard"></i></span>
            <script> var clipboard = new Clipboard('.copy-path'); </script>
        </p>
        <p>
            <span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" title="CC BY-NC-SA 4.0 International" target = "_blank">"署名-非商用-相同方式共享 4.0"</a> 转载请保留原文链接及作者。
        </p>
    </div>



    <nav id="article-nav">
        
        
            <div id="article-nav-older" class="article-nav-title">
                <a href="/2017/10/17/使用hexo在gitee和github搭建博客/">
                    使用Hexo在gitee和github搭建博客
                </a>
            </div>
        
    </nav>

  
</article>

    <div id="toc" class="toc-article">
        <strong class="toc-title">文章目录</strong>
        
            <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#注册MongoDB服务"><span class="toc-number">1.</span> <span class="toc-text">注册MongoDB服务</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#python使用MongoDB"><span class="toc-number">2.</span> <span class="toc-text">python使用MongoDB</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#使用MongoDB的几个注意事项"><span class="toc-number">3.</span> <span class="toc-text">使用MongoDB的几个注意事项</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#数据的导入"><span class="toc-number">4.</span> <span class="toc-text">数据的导入</span></a></li></ol>
        
    </div>
    <style>
        .left-col .switch-btn,
        .left-col .switch-area {
            display: none;
        }
        .toc-level-3 i,
        .toc-level-3 ol {
            display: none !important;
        }
    </style>

    <input type="button" id="tocButton" value="隐藏目录"  title="点击按钮隐藏或者显示文章目录">

    <script>
        yiliaConfig.toc = ["隐藏目录", "显示目录", !!"false"];
    </script>



    
<div class="share">
    
        <div class="bdsharebuttonbox">
            <a href="#" class="fa fa-twitter bds_twi" data-cmd="twi" title="分享到推特"></a>
            <a href="#" class="fa fa-weibo bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
            <a href="#" class="fa fa-qq bds_sqq" data-cmd="sqq" title="分享给 QQ 好友"></a>
            <a href="#" class="fa fa-files-o bds_copy" data-cmd="copy" title="复制网址"></a>
            <a href="#" class="fa fa fa-envelope-o bds_mail" data-cmd="mail" title="通过邮件分享"></a>
            <a href="#" class="fa fa-weixin bds_weixin" data-cmd="weixin" title="生成文章二维码"></a>
            <a href="#" class="fa fa-share-alt bds_more" data-cmd="more"></i></a>
        </div>
        <script>
            window._bd_share_config={
                "common":{"bdSnsKey":{},"bdText":"MongoDB使用记录　| HEWeddy's Blog　","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
        </script>
    

    
</div>







    




    <div class="scroll" id="post-nav-button">
        
            <a href="/" title="回到主页"><i class="fa fa-home"></i></a>
        

        <a title="文章列表"><i class="fa fa-bars"></i><i class="fa fa-times"></i></a>

        
            <a href="/2017/10/17/使用hexo在gitee和github搭建博客/" title="下一篇: 使用Hexo在gitee和github搭建博客">
                <i class="fa fa-angle-right"></i>
            </a>
        
    </div>

    <ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2017/10/18/MongoDB使用记录/">MongoDB使用记录</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/10/17/使用hexo在gitee和github搭建博客/">使用Hexo在gitee和github搭建博客</a></li></ul>




    <script>
        
    </script>
</div>
      <footer id="footer">
    <div class="outer">
        <div id="footer-info">
            <div class="footer-left">
                <i class="fa fa-copyright"></i> 
                2017 HFWeddy
            </div>
            <div class="footer-right">
                <a href="http://hexo.io/" target="_blank" title="快速、简洁且高效的博客框架">Hexo</a> 
            </div>
        </div>
        
            <div class="visit">
                
                    <span id="busuanzi_container_site_pv" style='display:none'>
                        <span id="site-visit" title="本站到访数"><i class="fa fa-user" aria-hidden="true"></i><span id="busuanzi_value_site_uv"></span>
                        </span>
                    </span>
                
                
                    <span>| </span>
                
                
                    <span id="busuanzi_container_page_pv" style='display:none'>
                        <span id="page-visit"  title="本页阅读量"><i class="fa fa-eye animated infinite pulse" aria-hidden="true"></i><span id="busuanzi_value_page_pv"></span>
                        </span>
                    </span>
                
            </div>
        
    </div>
</footer>
    </div>
    
<script data-main="/js/main.js" src="//cdn.bootcss.com/require.js/2.2.0/require.min.js"></script>

    <script>
        $(document).ready(function() {
            var iPad = window.navigator.userAgent.indexOf('iPad');
            if (iPad > -1 || $(".left-col").css("display") === "none") {
                var bgColorList = ["#9db3f4", "#414141", "#e5a859", "#f5dfc6", "#c084a0", "#847e72", "#cd8390", "#996731"];
                var bgColor = Math.ceil(Math.random() * (bgColorList.length - 1));
                $("body").css({"background-color": bgColorList[bgColor], "background-size": "cover"});
            }
            else {
                var backgroundnum = 10;
                var backgroundimg = "url(/background/bg-x.jpg)".replace(/x/gi, Math.ceil(Math.random() * backgroundnum));
                $("body").css({"background": backgroundimg, "background-attachment": "fixed", "background-size": "cover"});
            }
        })
    </script>





<div class="scroll" id="scroll">
    <a href="#" title="返回顶部"><i class="fa fa-arrow-up"></i></a>
    <a href="#comments" onclick="load$hide();" title="查看评论"><i class="fa fa-comments-o"></i></a>
    <a href="#footer" title="转到底部"><i class="fa fa-arrow-down"></i></a>
</div>
<script>
    // Open in New Window
    
        var oOpenInNew = {
            
            
            
            
            
            
             archives: ".archive-article-title", 
             miniArchives: "a.post-list-link", 
            
             friends: "#js-friends a", 
             socail: ".social a" 
        }
        for (var x in oOpenInNew) {
            $(oOpenInNew[x]).attr("target", "_blank");
        }
    
</script>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
  </div>
</body>
</html>